FROM node:14.19
LABEL maintainer "viktorxu"
WORKDIR /srv/build
COPY package.json .
COPY start.sh .
RUN npm i -g pnpm && \
    pnpm config set registry https://registry.npmmirror.com/ && \
    pnpm config set strict-peer-dependencies false && \
    pnpm i -D && \
    pnpm i && \
    chmod 777 start.sh

CMD ['./start.sh']
VOLUME /srv/akdata-vite
EXPOSE 3000
